
package com.epam.android.training.level1.db.dao;

import com.epam.android.training.level1.poll.PollBo;
import com.epam.android.training.level1.poll.QuestionBo;

import java.util.List;

/**
 * @author Anton Novikau
 */
public interface PollDao {

  List<Long> getAllPollIds();

  List<PollBo> findAllPolls();

  PollBo findPoll(long pollId);

  QuestionBo findQuestion(long questionId);

  List<QuestionBo> findQuestions(long pollId);

  long createPoll(String pollName, List<QuestionBo> questions);

  void savePollResult(long pollId, int result);

  String getNewestPollTitle();
}
